<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let geo = {
            lat: '25.789',
            lng: '125.4567'
        }
        // let geo = ['25.256', '125.485']
        localStorage.setItem('geo', JSON.stringify(geo))
        console.log(JSON.parse(localStorage.getItem('geo')))
        // localStorage.setItem('ls_name', '杨幂') // 一直在
        // sessionStorage.setItem('ss_name', '露丝') // 会话中   关闭了浏览器
    </script>
</body>
</html>